/**
 *  @Author MJreams
 *  @Time 2023/12/13 20:25:00
 *
**/

package cmd

import (
	"github.com/spf13/pflag"
)

type GlobalOptions struct {
	Global string
}

var (
	Global string
)

func init() {
	pflag.StringVarP(&Global, "global", "g", "bjut", "Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)")
}
func NewOptions() *GlobalOptions {
	return &GlobalOptions{
		Global: Global,
	}
}
